package net.qiqbframework.eventsourcing.dao;

import net.qiqbframework.common.dto.PageResultDto;
import net.qiqbframework.persisthanding.dao.BasicEntityPoDao;

import java.util.List;

public interface DomainEventFeedbackDao extends BasicEntityPoDao<DomainEventFeedbackPo> {
    /**
     * @param condition
     * @return
     */
    PageResultDto<DomainEventFeedbackPo> list4Page(DomainEventFeedbackPageCondition condition);


    /**
     * 根据事件id 找到相同聚合根的领域事件
     *
     * @return
     */
    List<DomainEventFeedbackPo> listByEventId(String eventId);

}
